package com.tuanzi.loan.business.entity.galaxycard;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 银河黑卡卡权益-激活码 Entity
 * @author JinRuiyang 2018/1/19 11:38:27
 */
@Data
@Entity
@Table(name = "loan_galaxy_card_privilege_cdkey")
@SuppressWarnings("serial")
@EqualsAndHashCode
public class GalaxyCardPrivilegeCDKey implements Serializable {

    // 主键
    @Id
    @Column(name = "id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    // 激活码对应的权益id
    @Column(name = "privilege_id")
    private Long privilegeId;

    // 用户关联的权益信息id
    @Column(name = "privilege_info_id")
    private Long privilegeInfoId;

    // 激活码
    @Column(name = "active_code")
    private String active_code;

    // 激活码状态 0- 不可用 1-可用
    @Column(name = "status")
    private Integer status;

    // 创建时间
    @Column(name = "create_time")
    private Date create_time;

    // 更新时间
    @Column(name = "update_time")
    private Date update_time;

    // 激活码导入人员
    @Column(name = "operator_name")
    private String operator_name;
}
